import { Redirect } from 'umi';
export default function Auth(props) {
  if(Math.random() > 0.5) {
    return props.children;
  } else {
    return <Redirect to="/login" />;
  }
}
